
class Move {
    public enum Direction { UP, RIGHT, DOWN, LEFT }

    private final Shape shape;
    private final Direction direction;

    public Move(Shape shape, Direction direction) {
        this.direction = direction;
        this.shape = shape;
    }

    public Shape getShape() {
        return shape;
    }

    public Direction getDirection() {
        return direction;
    }

    @Override
    public String toString() {
        return getShape().getId() + " " + direction.toString();
    }
}
